package io.github.wslxm.springbootplus2.core.base.desensitization.handler;


import cn.hutool.core.util.DesensitizedUtil;
import io.github.wslxm.springbootplus2.core.base.desensitization.DesensitizationHandler;

/**
 * 【电子邮箱】邮箱前缀仅显示第一个字母，前缀其他隐藏，用星号代替，@及后面的地址显示，比如：d**@126.com
 *
 * @author wangsong
 * @date 2023/09/05
 */
public class EmailDesensitizationHandler implements DesensitizationHandler {

    @Override
    public String handler(String str) {
        //
        return DesensitizedUtil.email(str);
    }
}
